<%@ Page Language="vb" AutoEventWireup="false" Codebehind="LateFactoryETDReport.aspx.vb" Inherits="MIMS_WRS.Web.LateFactoryETDReport"%>
<%@ Import namespace="MIMS_WRS.Web" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head>
		<title><%= RequestContext.OfficeName %> P.O. and Container Schedule - Late Factory ETD Report</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../../report.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		function printDocument() {
			window.document.getElementById('ActionTop').style.display = "none";
			window.document.getElementById('ActionBottom').style.display = "none";
			window.print();
			window.document.getElementById('ActionTop').style.display = "block";
			window.document.getElementById('ActionBottom').style.display = "block";
		}
		//-->
		</script>
		<style>
			.OrderReport span.highlight{
				color: black !important;
			}
			
			.OrderReport span.highlight2{
				color: red;
			}
		</style>
	</head>
	<body>
		<form id="Form1" method="post" runat="server"><div id="ActionTop">
						<input type="button" value="Print" onclick="printDocument()">
						&nbsp;&nbsp;&nbsp;<a href="../../StartPage.aspx">Front page</a>&nbsp;|&nbsp;<a href="../../login.aspx?logout=1">Logout</a>
						<br>
					</div>
					<div align="center" class="ReportTitle"><%= RequestContext.OfficeName %> P.O. and Container Schedule - Late 
						Factory ETD Report</div>
			<asp:repeater id="rptList" runat="server" enableviewstate=False>
				<headertemplate>
					
					<table class="OrderReport" cellpadding="0" cellspacing="1" border="1">
						<thead>
							<tr>
								<th>
									Req</th>
								<th>
									Order Date</th>
								<th>
									Factory ETD Date</th>
								<th>
									Bulk</th>								
								<th>
									Size</th>
								<th>
									Pack</th>
								<th>
									Type</th>
								<th>
									Supp</th>
								<th>
									O/No</th>
								<th>
									Primary</th>
								<th>
									Con</th>
								<th>
									Acc No</th>
								<th>
									Customer</th>
								<th>
									Final Destination</th>
								<th>
									Arrival Port</th>
								<th>
									Description</th>
							</tr>
						</thead>
						<tbody>
				</headertemplate>
				<itemtemplate>
					<tr>
						<td><%# Convert.ToString(DataBinder.Eval(Container.DataItem, "REQ")).PadLeft(4, "0"c)%>
						</td>
						<td>
							<%# GetOrderDateText(DataBinder.Eval(Container.DataItem, "OrderDate")) %>
						</td>
						<td>
							<%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "FactoryETD")) %>
						</td>
						<td>
							<%# GetBulkText(DataBinder.Eval(Container.DataItem, "BulkType")) %>
						</td>												
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "ContainerSize")) %>
						</td>
						<td>
							<%# GetPackText(DataBinder.Eval(Container.DataItem, "LP")) %>
						</td>
						<td>
							<%# GetTypeText(DataBinder.Eval(Container.DataItem, "PONo_Type")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "PONo_Supplier")).PadLeft(3, "0"c) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "PONo_Number")).PadLeft(3, "0"c) %>
						</td>
						<td>
							<%# GetPrimaryText(DataBinder.Eval(Container.DataItem, "IsPrimary")) %>
						</td>
						<td>
							<%# GetConText(DataBinder.Eval(Container.DataItem, "PONo_Consolidation")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "AccNo")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "CustomerOrLocation")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "FinalDestination")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "ArrivalPort")) %>
						</td>
						<td>
							<%# GetNullText(DataBinder.Eval(Container.DataItem, "Description")) %>
						</td>
					</tr>
				</itemtemplate>
				<footertemplate>
					</tbody> </table>
				</footertemplate>
			</asp:repeater>
			<div id="ActionBottom">
				<br>
				<input type="button" value="Print" onclick="printDocument()">
			</div>
		</form>
	</body>
</html>
